package com.itheima.fuxichengxu;

import java.util.Scanner;

public class SwitchChuantou {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(true){
            System.out.println("请录入星期数");
            int day = sc.nextInt();

            switch(day){
                case 1 :
                case 2 :
                case 3 :
                case 4 :
                case 5 :
                    System.out.println("工作日");
                    break;
                case 6 :
                case 7 :
                    System.out.println("休息日");
                    break;
                default :
                    System.out.println("您的输入有误");
                    break;
            }

        }

    }
}
